Skip to content

feat: argus alert — metric monitoring with webhook notifications (#131)#147

Merged
rlaope merged 1 commit intomasterfrom
feat/argus-alert
Apr 14, 2026
Merged

feat: argus alert — metric monitoring with webhook notifications (#131)#147
rlaope merged 1 commit intomasterfrom
feat/argus-alert

Conversation

@rlaope
Copy link
Copy Markdown
Owner

@rlaope rlaope commented Apr 14, 2026

Summary

  • argus alert localhost:9202 --gc-overhead=10 --leak --webhook=https://hooks.slack.com/xxx
  • Polls /prometheus endpoint, evaluates threshold rules, sends webhook on breach
  • Deduplication: fires once per alert, clears on resolve

Changes

  • AlertRule — configurable threshold with comparator (>, >=, <, <=)
  • AlertEngine — poll loop + rule evaluation + dedup
  • WebhookSender — HTTP POST JSON via java.net.http.HttpClient
  • AlertCommand — CLI with --gc-overhead, --leak, --webhook, --config, --interval
  • Config file: plain key=value (no YAML dependency)
  • i18n (en/ko/ja/zh), completions (bash/zsh/fish/ps1)

Test plan

  • ./gradlew :argus-cli:test — BUILD SUCCESSFUL
  • Manual: argus alert localhost:9202 --gc-overhead=5

Closes #131

- AlertRule: configurable threshold rules with comparator support
- AlertEngine: polls /prometheus, evaluates rules, deduplicates
- WebhookSender: HTTP POST JSON alerts via java.net.http.HttpClient
- AlertCommand: --gc-overhead, --leak, --webhook, --config flags
- Config file: simple key=value format (no YAML dependency)

Signed-off-by: rlaope <piyrw9754@gmail.com>
@rlaope rlaope merged commit d0a8349 into master Apr 14, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: argus alert — configurable metric alerting with webhook notifications

1 participant